<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .bounce-enter-active{
      animation: bounce-in .5s;
    }
    .bounce-leave-active{
      animation: bounce-in .5s reverse;
    }
    @keyframes bounce-in{
      0%{
        transfrom:scale(0);
      }
      50%{
        transfrom:scale(1.5);
      }
      100%{
        transform:scale(1);
      }
    }
  </style>
</head>
<body>
  <div id="demo">
    <button @click='show=!show'>闪现</button><br>
    <transition name="bounce">
     <p v-show='show' style='display:inline-block'>显示闪</p>
    </transition>
  </div>
  <script src="../js/vue.js"></script>
  <script>
    new Vue({
      el:'#demo',
      data:{
        show:true
      }
    })
  </script>
</body>
</html>